package com.hippoframework.exception;
import com.hippoframework.utils.ClassUtils;

/**
 * @author YichuanWang
 * @date 12/26/2019 5:57 PM
 */
public class BeanNotOfRequiredTypeException extends BeansException {

    public BeanNotOfRequiredTypeException(String msg) {
        super(msg);
    }

    public BeanNotOfRequiredTypeException(String beanName, Class<?> requiredType, Class<?> actualType) {
        super("Bean:" + beanName + " 应该是：" + ClassUtils.getQualifiedName(requiredType) + " 但是却是：" + ClassUtils.getQualifiedName(actualType));
    }

}
